package com.choosefine.it.basedata.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import com.choosefine.it.base.Base;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 * 班组类型模型
 * @author guwenwei
 * @date 2016/11/26
 */
@ApiModel(value = "班组类型模型", description = "班组类型基础数据模型")
public class TeamTypeClass extends Base implements Serializable {
	@ApiModelProperty(value = "主键ID", required = true)
    private Integer id;
	@ApiModelProperty(value = "班组大类别名", required = true)
    private String classname;
	/*
	 * 链表排序标识
	 * add by juchengyang 2017/2/16
	 */
	@JsonIgnore
	private Integer sortNum;

    private static final long serialVersionUID = 1L;
    
    /*
     * add by juchengyang
     */
    @ApiModelProperty(value = "启用状态", required = false)
    private Integer isValid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname == null ? null : classname.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TeamTypeClass other = (TeamTypeClass) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getClassname() == null ? other.getClassname() == null : this.getClassname().equals(other.getClassname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getClassname() == null) ? 0 : getClassname().hashCode());
        return result;
    }

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public Integer getIsValid() {
		return isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}
    
}